package com.webchat.pgc.repository.entity.sys;


import com.webchat.pgc.repository.entity.BaseEntity;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Data;

/**
 * 数据字典实体
 *
 * @author SongRenShuo
 * @date 2025/06/25
 */
@Data
@Entity
@Table(name = "web_chat_sys_data_dictionary")
public class SysDataDictionary extends BaseEntity {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    protected Long id;

    /**
     * 编号
     */
    @Column(name = "code")
    private String code;

    /**
     * 名称
     */
    @Column(name = "name")
    private String name;

    /**
     * 分类ID
     */
    @Column(name = "category_id")
    private Long categoryId;

    /**
     * 描述
     */
    @Column(name = "description")
    private String description;
}
